<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="robots" content="noindex,nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="/webdot/icon.png">
<title>WebDot Tutorial: Graphs in Tclets</title>
</head>
<body bgcolor="white">
<a href="/cgi-bin/webdot/webdot/svginline.html">[previous]</a>
<a href="/webdot/graphquest.html">[next]</a>
<font size="+2"><b>WebDot Tutorial: Graphs in Tclets</b></font>
<p>
<webdot src="/cgi-bin/webdot/webdot/tclembed.dot" engine="neato" type="tcl" target="new">
<p>
WebDot can convert a graph into a "Tclet" for the
<a href="http://www.demailly.com/tcl/plugin/download.html">Tcl Plugin</a>.
For example, tclembed.dot contains:
<table border="1"><tr><td><pre>
digraph G {
        node [URL="\N.html"]
        edge [URL="\E.html"]
        {a b c} -&gt; d
}
</pre></td></tr></table>
and the source of this page contains (for the Tclet which should be displayed below):
<table border="1"><tr><td><pre>
&lt;webdot src="/cgi-bin/webdot/webdot/tclembed.dot" engine="neato" type="tcl" target="new"&gt;
</pre></td></tr></table>
<p>
after serving this page through /cgi-bin/webdot, this &lt;webdot...&gt;
tag is replaced by:
<table border="1"><tr><td><pre>
&lt;embed src="/cgi-bin/webdot/http://127.0.0.1/cgi-bin/webdot/webdot/tclembed.dot.neato.tcl"
  width="600" height="400"&gt;
Graph in Tclet
&lt;/embed&gt;
</pre></td></tr></table>
</body>
</html>
